package org.dfl.core.model;

import org.jdom.Element;


/**
 * element that can be saved and loaded
 * @author Piotr Wlodarczyk
 *
 */
public interface IOElement {
	/**
	 * load from an XML element
	 * @param elem - element to load from
	 * @throws XMLLoaderException
	 */
	public void load(Element elem)  throws XMLLoaderException;
	
	/**
	 * save to an XML element
	 * @return XML Element
	 */
	public Element save();
}
